<?php

class Form_ArtworkComment extends Zend_Form
{

    public function init()
    {
    	$id = new Zend_Form_Element_Hidden("id");
        $id->setValue(0);
        $id->setRequired(true);
        $idValidator = new Zend_Validate_Int();
        $id->addValidator($idValidator);
        $this->addElement($id, "id");
        
        
        $artwork = new Zend_Form_Element_Hidden("artwork");
        //$name->setLabel("Name: ");
        $artwork->setRequired(true);
        $artworkValidator = new Zend_Validate_Alnum(false);
//        $name->addValidator($nameValidator);
        $this->addElement($artwork, "artwork");
        
        $content = new Zend_Form_Element_Textarea("content");
        //$name->setLabel("Name: ");
        $content->setRequired(true);
        $filter = new Zend_Filter_StripTags();
        //$contentValidator = new Zend_Validate_(false);
        $content->addFilter($filter);
        $this->addElement($content, "content");
        
        
        $submit = new Zend_Form_Element_Submit("submit");
        $this->addElement($submit, "submit");
    }


}

